﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<#include "/pages/include/include.ftl" />
<@h.css href="/css/uc.css"/>
<@h.js src="/javascripts/public/faq.js"/>
<#include "/pages/include/setlayout.ftl" />
<script type="text/javascript">
	var faq=new faq();
		$(function(){
			//all select
			$('.allSelect').click(function(){
				faq.checkAll($(this));
			});
			//delete
			$('#delBatch').click(function(){
				faq.delBatch();
			});
		});
</script>
</head>

<body>
<#assign menuId="faq">
<div id="layout1" class="wrapper">
	<#include "/pages/include/top.ftl" />
	

	
	<#include "/pages/person/myfile/file_menu.ftl" />
	
	<div position="center" title="评论管理">
		<div class="action-div">
		<#if action.hasAuth("FAQ_DEL")>
			<a id="delBatch" class="minibutton"><span>删除</span></a>
		</#if>
		</div>
		<div  class="sList" >
		<table width="100%" class="sTable" cellpadding="0" cellspacing="0" border="0" >
			<tr>
				<td class="sTh checkbox" ><input class="inputCheckbox allSelect" type="checkbox" id="" name="" /></td>
				<th class="sTh">标题</th>
				<th class="sTh">内容</th>
				<th class="sTh">发表人</th>
				<th class="sTh">发表时间</th>
			</tr>
		<#if list?exists>
		<#list list.result as a>
			<tr class="<#if a_index%2==0>sRow2<#else>sRow1</#if>">
			<td class="sCell" ><input class="inputCheckbox selectItem" type="checkbox" value="${a.id?if_exists}" /></td>
				<td class="sCell" style="width:300px;">
				<a class="f14" 
					<#if a.from==2>
						href="${contextPath}/news/news-showNews.action?newsId=${a.fkId?if_exists}"
					<#else>
						href="${contextPath}/myfile/myfile-showFile.action?fileId=${a.fkId?if_exists}"
					</#if>
					 title="${a.title?if_exists} ">
						<#if a.title?exists && a.title?length gte 31>
							${a.title?if_exists?substring(0,31)}...
						<#else>
							${a.title?if_exists}
						</#if>
				</a></td>
				<td class="sCell">${a.content?if_exists}</td>
				<td class="sCell"  style="width:100px;">${a.user?if_exists}</td>
				<td class="sCell" style="width:200px;">${a.publishTime?if_exists}</td>
			</tr>
		</#list>
		</#if>
		</table>
		</div>
		<@s.component id="page" template="components/page.ftl"> 
				<@s.param name="page" value="%{list}" />
				<@s.param name="pageRange" value="%{pageRange}" />
				<@s.param name="param" value="%{action.param}" />
		</@s.component>
	</div>
	
	<#include "/pages/include/bottom.ftl" />
	
</div>

</body>

</html>
